import {RouterModule} from '@angular/router';
import {HomeComponent} from './home.component';
//消息
import {MessageComponent} from './message/message.component';
//会员
import {MemberComponent} from './member/member.component';
//首页
import {HomepageComponent} from './homepage/homepage.component';
//晒图
import {PhotoComponent} from './photo/photo.component';
//我的
import {MineComponent} from './mine/mine.component';
import {PersonageComponent} from './mine/personage/personage.component';
import { MyPerformanceComponent } from './mine/my-performance/my-performance.component';


export const homeRoutes = [
  {
    path: '',
    component: HomeComponent,
    children: [
      {
        path: '',
        redirectTo: 'message',
        pathMatch: 'full'
      },
      {
        path: 'message',
        component: MessageComponent
      },
      {
        path: 'member',
        component: MemberComponent
      },
      {
        path: 'homepage',
        component: HomepageComponent
      },
      {
        path: 'photo',
        component: PhotoComponent
      },
      {
        path: 'mine',
        component: MineComponent,
        children: [
          {
            path: '',
            redirectTo: 'person',
            pathMatch: 'full'
          },
          {
            path: 'person',
            component: PersonageComponent
          },
          {
            path: 'performance',
            component: MyPerformanceComponent
          }
        ]
      }
    ]
  }

];
